<div class="navigation">
    <strong><i class="icon-user"></i> Dashboard</strong> 
    <hr>
      <ul class="list-unstyled">
        <li class="nav-header"> <a href="#" data-toggle="collapse" data-target="#userMenu">
          <h5>People <i class="icon-chevron-right"></i></h5>
          </a>
            <ul class="list-unstyled collapse in" id="userMenu">
                <li><i class="icon-user"></i><?php echo CHtml::link('User Profiles', array('user/admin'));?></li>
                <li><i class="icon-star"></i> <?php echo CHtml::link('Alumni', array('alumni/admin'));?></li>
                <li><i class="icon-tag"></i> <?php echo CHtml::link('Volunteer', array('volunteer/admin'));?></li>
                <li><i class="icon-exclamation-sign"></i> <?php echo CHtml::link('Batch', array('batch/admin'));?></li>
            </ul>
        </li>
        <li class="nav-header"> <a href="#" data-toggle="collapse" data-target="#menu2">
          <h5>Operations <i class="icon-chevron-right"></i></h5>
          </a>
        
            <ul class="list-unstyled collapse" id="menu2">
                <li><i class="icon-envelope"></i> <?php echo CHtml::link('Donation', array('donation/admin'));?></li>
                <li><i class="icon-file"></i> <?php echo CHtml::link('Mission Areas', array('missionArea/admin'));?>
                </li>
                <li><i class="icon-bookmark"></i> <?php echo CHtml::link('Mission Assignments', array('missionAssignment/admin'));?>
                </li>
                </li>
            </ul>
            <hr>
            <strong><i class="icon-flag"></i> <?php echo CHtml::link('Audit Trail', array('auditTrail/admin'));?></strong>
          </li>
        </li>
    </div>
<!--nav-list-->
<div class="dashboard">
       <strong><i class="icon-envelope"></i><?php echo CHtml::link('DONATIONS', array('index'));?></strong>
        <ul class="list-inline pull-right">
        	<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">
        		<i class="icon-plus-sign"></i><span class="count"><strong>Add Donations</strong></span></a><ul class="dropdown-menu" role="menu">
        		<li><?php echo CHtml::link('Cash', array('create'));?></li>
        		<li><?php echo CHtml::link('Cheques', array('cheque/create'));?></li>
        		<li><?php echo CHtml::link('Paypal', array('paypal/create'));?></li>
        	</ul>
        </li>
            <li><a href="#"><i class="icon-download-alt"></i><strong>Export data</strong></a></li> 
        </ul>
</div>
    <div class="form search_member" >
    <form method="get">
        <div class="text input-group margin-bottom-sm">
           <span class="input-group-addon"><i class="icon-search"></i></span>
            <input type="text" name="keyword" placeholder="search profiles">
          </div>
      <!--   <div class="search_info">use alumni name, alumni code</div> -->
    </form>
</div>
</div>
<br>
<br>
<?php $this->widget('bootstrap.widgets.TbGridView', array(
'type'=>'striped bordered condensed',
'dataProvider'=>$model,
'template'=>"{summary}\n{items}\n{pager}",
'columns'=>array(
				array(
					'header'=>'Name',
					'name'=>'user_id',
					'filter'=> CHtml::listData(User::model()->findAll( "roles NOT IN ('admin','encoder')"), 'id','fullName'),
					'value'=>'$data->user->fullName',
					),	
			array(
					'header'=>'Donation Date',
					'name'=>'donation_date',
					'filter'=> false,
			),
			array(
					'header'=>'Payment type',
					'name'=>'donation_type',
					'filter'=> false,
			),
			array(
					'header'=>'Status',
					'name'=>'donation_status',
					'filter'=> false,
			),
			array(
					'header'=>'Amount',
					'name'=>'amount',
					'filter'=>false,
					'value'=>'$data->Amount()',
					'htmlOptions'=>array('style'=>'text-align:center;')
			),
			array(
			'class'=>'bootstrap.widgets.TbButtonColumn',
			'template'=>'{view}{update}{delete}',
			'buttons'=>array(
					'view'=>array('icon'=>'icon-search'),
					'update'=>array('icon'=>'icon-edit'),
					'delete'=>array('icon'=>'icon-trash'),

				),
		),
),
)); ?>

